renamed main file
added authorStatement option; fixed fancyhead option; grouped similar parts of code