Almost fix poor engine's performance.

Tidy up ext folder.
Add basic documentation to ext folder.
Prettify frontend.
Add training data and engine that performs with 93% accuracy.