Added reset function

Added reset function to Api.ino