finished forward simulation function and added a percent complete counter