More documentation and minimal error logging.
Updated documentation and added minimal error handling.
Hopefully last bug regarding control break (or the absence of...)