Add instructions and fix seg fault