Added support to load a custom configuration file. Also added safety check to ensure a spec file is provided.