cleaned up code a bit
moved deallocate after print, acc_crust now compiles