Removed some excess lines of code from functions. Corrected an error in nephews-nieces-query.