Reformatted to match coding standard
Add missing license headers and update (c) year to 2013
Remove obsolete debug log method