Simplified streams code and added chessboard detector