incrementviewcount is updated to reference the right directory
JavaDoc is added