Version 0.5.3

Fixes issues #19 where threads where not properly joined. Implements
better logging practices.