Commented the code a bit, done for the night