placed functions in a new file, updated doc, got age working smoothly