Added @API annotations to API and fixed wrong peripheral priorities