fixed a few things, added specific discharge