Write working properly, update need to test, read need to complete
logic. Implemented command line loop also