update composer and adjust some unit testing. fix #13
fix doc blocks
minor updates on grammar