Added comments and a little bit of code :).