Core pr 3

* Updated coding style.
* Fixes of payment size.
* Correct usages of md5 hash's during payment.