added 4.0 framework support
added 3.5 support, extracted compiler into own class to abstract fw version differences
clean up