added gitignore for virtualenv folder
Commentated code and fixed minor bugs
added config.py for config variables
database handling introduced