Prettified. TODO: reverse array, output to file, comments