Added code comments and input variables tests.