Changed directino value from current to value. Reordered functions in API-file