code style improvements

- added semi-colons
- indented visually
- add radix parameter to call to parseInt
update examples and built files