Clean up project

Add gemspec to distribute lib as a gem
Add test, still work in progress.
Update readme file.
Update example files