Added some comments and stopped inspecting data
finished commenting it and fixed some variable issues