cleaned up code. fixed indentation. removed redundancy. removed double dragend event. add gitignore.