Add writeup of algorithm, classes and functions (in progress)