changed name of main and fixed some stuff