Minor bug fixes and GNU license added.