code cleanups. comments. bumped version number to 0.3.