Added global vectors in main, worked on debugging functions