Done Task5. Add ways to test tasks in Demo.java - each of them is
explained in javadoc. Finished documenting API.