Improved field detection.
Moved the functions into arianna.api.
Setup codox.
Vastly updated doc strings.