added getall function. Need to remove newlines and tabs