add ModelParser and some tests