various small fixes, add rakefile
updates / fixes