Add comments and refactor code
Merge branch 'master' of github.com:albulescu/caDrag