Moved server into its own module.
Added path for exec.
Corected syntax error in export module.