Refactored code, updated styles and fixed few bugs.