Added logging
Added tests for filename extension