Added parsing code + tex