update readme and add documentation for embedded compiling