Fixed an angle computation problem, added config options to webpage