Basic implementation of adding an entry

Also fixes #7