organized code a little, moved constants into header file
new header file for defines in main, for cleanliness