formatting
wrapping compass in a function, Compass changed to a object
formatting
Basic handling of default events

Need to test further and integrate with custom events handling