Added comments, fixed couple of things and added a small sample.