finishing up assignment 3.... still need to comment code and test to see if all functionality is working. nscoding seems to work so far.
commented code for assign 3