Added a man page, put all the functions into a different module.