add compile begin and end markers
remove detect output
Merge pull request #125 from spaungam/stagingoutput

add compile begin and end markers