Changed filenames, Added main.py

Changes made in code:
- Code is PEP-8 Compailant (not lex.py)
- main.py a module for exposing all the backend stuff
- updated functions accordingly.

In short, no major changes.