fixed code samples in index