Updated comments and JFrame updating for older versions of Java