Adding energy files, few methods in search.cpp implemented