fixed deletion of memory error, added bullet limit, added destructors