share dir added; energy functions ploted