Added "total" method. Tests. Readme.