fixed readme and code generator for use with new loaders