Fix typos and add javadocs to log() method