Fixed a few small bugs, added __str__, and tested basic functionality.