Added Documentation, with minor fixes