Added comments and fixed printlns