Actually document everything

Also format the output to meet the required output