added debug messages to member functions
implemented some member functions of MoleculeStack