Clear up and add perl src and documentation