Debugging

Finalized debugging and all codes running great.