added comments and other tests