Correct default term regex
Fix fragment terms with differnt casings
Update tooltips/state when updating fragments
Logging, moved main definitions to separate class
JS exception handler