Fixed NPE and added stylesheet to Javadoc.