Added meterial support.
Added more multiuser support.
Added input validation