added author section, started refactoring
improved example