Add readme and preliminary error checking