Fix inaccuracies and add comments

Thanks to M. Amini for his review!