Remove unused declaration
Code style
Move editor related function
Move camera related functions
Move ACTIVECAM
Move cursor related code to own file