Created main.pl file for main program. Completed some basic funtions to work with links in list form