Make nextStep and previousStep functions publicly accessible

Also removed 2 trailing whitespaces