there is a professional visit pass that you can apply for.
This needs to be applied for,I think,1 month before hand and must be applied for outside of Malaysia.
Perhaps when you go to the monastary you can start to organise all the paperwork and then possibly after your original visa expires you could go to the embassy in Bangkok(you would need to stay in a monastary in Thailand while you are waiting(remember that you will only get 15 days if you use a land or sea entry,but you can do this a few times).
I am not sure of your nationality,but many countries get a 90 day visa on arrival in Malaysia and these can be extended(kiwis can get another 2 months).
Good luck with your going forth.
And crawling on the planets face,some insects called the human race.
Lost in time
Lost in space