added simplecov
minor bug fixes, added more spec