misc code comments and add gemnasium badge to readme