shifting around some code, adding types file to reql module. organizes things a little nicer.