Remove oktypes
Remove unused stuff from Resources
Added a logger
Added Preferences
Get rid of some exception throwing