Comments added to the examples

Added tons of comments to detailed the purpose of most lines of code in
example1 and example2