Prettyfied the code a bit and made all tabs into spaces for better
apperance on GitHub