Added multiple wildcards and returned input as an array
Added commenting to the library