version 1.2 added

Various fixes and improvements.