code cleanup, new script for simple random trees