Got some basic stuff coded in. UNTESTED CODE

FINAL REVISION BEGUN