BIG UPDATE | Debug

Debugged entire code.