Added some tests
General cleanup and optimization
Added a license

The license is the GNU GPL v3 license.
Merge pull request #1 from rock-fish/rock-fish

Updated master to contain tests and license