remove #include <random>, cleaned up the code, added the filtered rendering code (still to be checked)