Refactored code with some additions
1. Added ability to autodetect analysis modules
2. Added config.m for global configuration