add change link functionality and move link removal to separate command
Fix bug from last commit,
Add tests
Update examples and compile
Merge pull request #4 from Edicy/linking_changes

Change linking logic and move link removal to separate command