Added some documentation on the code...