Add write-up to github. Also made some additional comments about data structure.