Needs moar logging.
Added more documentation and log support.