Added parsing code

Early stages of parsing.