fix coin-distance-bug, refractor & optimize money connection
cleanup and optimize money connection
Merge pull request #132 from transparencyint/c-coinCalc

C coin calc