Optimisations and output to console

Moved setup path to constructor. Can now output to console.