Fixed indentation, use hard tabs, added comments