- fixed readInt method.
- changed the the code format.