Went over all the examples. Fixed some bugs.