formatting, misc cleanup
bumped version to 0.5.1 beta