Type hinting added for arrays. A few comments