Implemented add, remove, and getSize
Fixed exception bugs in functions, made small changes