Dokumentation and minor refactoring
Print statement had incorrect index