added docs, a safe mode for interpol and an environment print method