Fixed tests. More documentation.