Issue16 rake build script

#16 (Rewrite build script in Rake) pull request