I've made most of the modifications today, so I haven't tested everything for a long time. Please share your thoughts about how to improve this code . . .
Reformat
no summary available
no summary available
Added nameses
N -> n