Reformatted, dead code/comments removed, reduced loglevel