Added functionality to modify existing model generated by r dia tool