More documentation of code