Fixed some buggaboos. Added implicit euler method.