Are you using tabs instead of spaces? The indentation is quite off. But in any case - never use tabs - they assume the the 
tab indentation setting for everyone is the same - and that generally isn't the case.