cleaned up comments and added main.h