move started at to stage, issue #34
fix coding style