Commented code, added usage and sample output