added basic parsing function, starting analysis