Add AppOptions for application command line options.
Improving JavaDoc and add check that the repository has been initialized before first use.