Code now path independant
Impoved printing. Made script runnable from anywhere.