Added code to lab5

Now all the code is commented away. Every function is also commented away.