Fixed errors in doc/ and samples/