added guard around nofor_main patching, added copyright header and list of authors, fixed code style