added unit tests, trimmed readme. -Colin