fixed parseKeyInner (using substring)
fixed parseKeyInner (using substring)
minor changes in cases for parseVal
documentation for helper methods