added main loop
added class reference file