refactored to Module::Build, Moose and git