Merge pull request #15 from algal/master

many small changes which modernize, refactor, and comment the code base