read method can now be called as classmethod.

This solves #35.