Corrected three bugs that created segfaults. This led me to comment a rerooting procedure.