Created stack trace when connection throws NULL pointed
Added export functionality
Added updated javadoc