added and fixed documentation.