bumped version to 0.49.
minor coding style fixes.