fixed constructor, added clear, added toString