add missing dependancies
cleanup
add Rakefile for testing