First full but unfinished version

Rewrote introduction, added conclusion, restructured related work and
added many revisions.