Updated docs for 1.0.4 and fixed some bugs in documentation.