tidied up guards, removing unused groups
added rakefile for build