refactored and added comments to Vehicle.java