added comments and better stringsplit