Moved main module and testing code into separate folders.