starting latex code - still buggy with footer end document