Added tests and comments
Merge remote-tracking branch 'origin/master'