Adding required loadosophia object class
Refactoring - allowing debug output