Tab size bug and file extension check - Fixes #6 and also closes #7