removed the test code and added the main module code stub as well as a test file