Check user prefix for invalid options. Add JavaDoc. Add unit tests.