got template loading working from jar file and worked out a few bugs