added parse_exp function
added main parsing function