Updated 'second', 'input', and 'output' to 'out'

Made changes based on feedback