move lladser functions into their own module

Also finished adding _validate calls to indices