Added comments and test log for documentation purposes