rework application API.

- add javadoc
- change modify & delete to void method
- rework unit test