Clean up the code

- Add options to enable/disable SSL/Debug mode.
- Singleton “implementation”.
- Clean up the code & comments.
Merge pull request #3 from AbdullahDiaa/master

Clean up the code