Code for TDT4136 at NTNU 2014