FileWriter supports subdirectories

Added parameter for using FileWriter with file in subdirectory.
WIP on generating internal header