Updated DocStrings and fixed a bug or two.