Removed circular imports, added lazy_debug, and new default for environemnt filename. Also added som documentations