Added requirements file
Fix incorrectly formatted code that results in a bug