added functions and tests
fixed spacing on endpoints
update on riot.lua, adding API versions