Fixed example script for documentation and cleaned up path stuff