fixed typo on wall checkings
introduced variables clearing
Updated gitignore to ignore chaining algorithm generated pdf file