Added readme and license.
Updated readme.
Fix potential NPE crash.