Changed permissions, added exception handling to parser class