Added tests for all existing methods. Cleaned up printouts. Fixed existing issues with extracting reference arguments