Added info for standard error

Functions now return mean and standard error of the mean. Added
link.close() to wrapper to prevent too many mySQL connections.