Added optional timeout to autohide the modal view

Hi David,

I Added an optional timeout value to autohide the modal view.

Regards,

André