fixes and cleanup

- cleanup logging
- add option to control whether intellisense is enabled or not
- ditch some old code.