Refactored code. Added some documentation
Merge branch 'master' of github.com:pairide/pairide