Added function documentation and switched from fetchAll to fetch when it...

... was more handy