Cleaned up tank sim main file.