Adding result checks
Adding comments
adding comments and len method'