Bug fixes and improvements for the first public release.
