Header Files

Added new method of finding the distance to the next basket, and changed
some c source files to header files.