The role of intermolecular interactions: studies on model systems for bacterial biofilms