Bugfixes and changes everywhere.
lots of bugs fixed. More bugs fixed.