Cleaned and Commented the code

- Cleaned the code
- Properly commented the code for the most part
- Cleaned the interface a bit with better feedback to the user