Added inline documentation to the main file