Documentation ,license, and bug fixes

Added initial documentation.  Fixed bugs #7, #12, #14.  Added GPL 3.0