added lots of comments
Added more helpful comments
added more comments and doctstrings