Added errorhandling and inputvaliation to parser
Handling nullvalues all around parser