encapsule io.write in agents
add load layer example
add TODO file
remove unnecesary optimization