* implemented more commands
* advanced in Smith form implementation