Improved HTMRL (input encoding, action sampling)