this is slightly broken: changed all code to functions and started scheme of only searching the ECPE file for a specific teacher or room