Refactor code

- Remove comments
- Remove prints
- Add support for multiple file formats (as, js, php)
- Reduce complexity by moving some method functionality into the main method