Removed incorrect boundry conditions, solved energy conservation for single corde case