Updated README text

added comments
fixed NPE