new version of luas-api
some tidy up, more comments