fixing shift up/down in library. closes #46.