Just did all commenting and re-arranging code into a logical order.

lets hope shit still works