nldoc_parse_modelcode function

Parse model code