problems with pointers.
made some progress. now more seg fault. but now i've got interesting output. =P