Changed some code

Changed code such as counter = counter + 1 to counter++ for a neater more clean look.