Added logging

Added logging using the winston package.