most changes were in student and prof classes

Some changes i made in main but not much
main problems delt with allocation of mem