Very clearly mention the source of the ideas you discuss.
If an example is from a paper, mention that.
Use cite command liberally.
Value addition by you:
If some idea is your own, mention that very explicitly.
If you constructed an example, mention that.
If you found a shorter proof, mention that.