- reuploaded version 6

- a few lines of code meant for debugging had to be changed for final
version