'fixed' peek(), not sure why it works in some places and not others. Fixed typo in copyright header, added handle for no input, other small stuff