Miscellaneous cleanup and bumped version number to 0.3.