added the blending equation to the pushed attributes
reformatted code, made model loading code safer and more Java-friendly