Convert tabs to spaces, add spaces around operators, add main method