Refactored code and added placeholder methods for main functionality.
Fixed file arguments passed to the add command.
Added the linking functionality (along with some helper functions).