correcting the mistakes and more documentation