more template parsing work, vehicle rule parsing--basics done.