Implemented symlinks and fixed up code a bit.