initial commit with code from androidperformance