More work on compiler and lua printer