added more handling for Ball type, added update function for Ball type, fixed minor naming issues