added simplecov
fixed style issues
fixed some tests