Fixed some path stuff when using in 'shakemap' mode, added windowing feature, etc.