some cosmetic issues, change name of function runModuleFucntion in api.php, сreate base logic for packing data into json format by clainatomi