Add strict mode and error checking
Add main method to module