Cleaning up the code in preperation for pull-request.
logging
Polished bugs off, exposed attributes and mostly prepared the code for a pull-request.