Initial code

I like keeping the log feature in the commit.