Bugs corrected

Corrected the "'module' object is not callable" error, imported missing libs, removed unused libs