added author information to main.c
added function to parse PATH variable into a array of directories.
small changes to code style ;P