added memory usage markers, improved on usage by adding destroy funcitons