add FUNCTION.md and modified some files