Added preliminary documentation for writing apps