clean up

I just did the quick clean up remove the stuff which I though was unnecessary for code to run.
I'm not sure its the bug or not! but i'm not able to open file through it. (might be due to major cleanup)