Updated tests
Fixed tracing functionality
Added command line interface
Allow dynamic detection of modules etc