added more exception control for stability
fixed syntax bugs
Final touches

Decided on static logging, the extra functionality wasn't worth the
added bugs