Module changed to classes

This way it's easy to have more applications each one with its configuration.