Commented a bit more of the code