Cleaned up ballistics example, broke out to libraries.