fixed energy calculation bug in ewca1. made thread setting doable with environment variable
added makefile temporarily