added correct . & # to method names in spec file
changed times to_i consistently throughout
minor fixes to clean up long lines