added comments, and added some extra code to get all the samples showing