write plane to file function
write plane to file activated by W
update docs