weno code debugged and test functions added