DRY'd up rakefile and added bitwise operators