Various bugfixes.
Last fixes and README.