Adding missing dependency to package.json
Adding implementations for add, modify and last to Segmment