Coding style fixes: indent, debug lvls
Added copyright info.