Fixed problem with code not updating add
Fixed problem with deletion now keeping correct post -> time relationship
Cleaned up code