jjSYSTEM: cleanup, format, documentation