Clean up the code

- Add options to enable/disable SSL/Debug mode.
- Singleton “implementation”.
- Clean up the code & comments.