Add requirements file

- Minor refactoring