various changes

-bug fixes in web server code
-changes in simulation and current flows