Fixed the errors in each system and all of them put together, still need to simulate all of them