added append and prepend methods; see issue #16