Fixed to calculate penalty accurately.
Merged develop branch to master.
Merged postscript.js from other repository.
Fixed in accordance with the protocol.
Merged develop branch to master.