Easing and tidying

Added easing from jQueryUI
Tidy up code a bit ready for new features