headerguards, fixed direction and signalshouldstop

Added pragma once as headerguards
signalshouldstop should work