Remove use of pointers in param classes and cleanup modules