Fix return typo
Add __repr__, was_published methods.