Fixed negative energy of L2. Use 3 vectors for momentum conservation
added libconfig for later