implemented every second loop
merged w master, ready for pull request
Merge pull request #15 from Gloryofthe80s/jacob_branch

Jacob branch