Many bugfix and error management.

All inclusive, should be bad ass working version. :)