Reorder files, fix issues
Fix some styling issues
Two known bugs: firing click event does not trigger the click on the table and the direction that is passed with firing the event does get passed on.

Possible improvement: take position of pointer a bit back in time, now the pushing motion makes the pointer move too much.