Michael's script

Explodes a string to form array of id's.
2nd function creates 2 d array.
First attempt of running script.