add type FileWriter and BufferedWriter
fix bug with constructors