Added theory section.
End of project commit. Some mess remains.