Added some comments, cleaned things up and incramented the version number