Added rough GUI support; fixed lots of minor math bugs; improved quality of shadow mapping