looking for "documentclass" in the main file instead of hardcoding it