Added context Printer's method
Refactored KPointsWriter to use Printer's context