Increased introduction and litreature review. Fixed references issue.
Added code diagram.