resolves #170: rake tasks

@kevgo Fixed a few lint issues along the way