Clean code
Add some test cases
Add res copy for command bin
Work on #13
Mirror fix
Bug fix
Merge pull request #15 from gpmgo/dev

Dev