Implemented key string reading/writing. Relates to #17.