Fix #7

Finished reorganizing the code.

- Moved all external libraries to ext folder.
- Moved all documentation and examples to doc folder.
- Documented the code structure in the REAME file.