Added setting for disabling first and last links

Closes #16