Bug fixes to statarb_erniechan sample based on feedback from Tibor Kiss.