Moved functions for setting graphs sizes to a separate file. The same with loading libraries.