add clean up all preeexiing objects from memory, add echoing of some environament variabls in shell, minor refactoring