implemented more rules
implemented all rules
formatting
NX server is finally working