improve actor's API
fix events add handling of rotated and scaled actors
add math module
refactoring
local improvements