code cleanup
updated version number and license