finish of lint and rake spec, bug fixes