updated spec files, added helper file and broken specs into classes