added multiple functions feature/working on C function