moved source to files
major restructor to support tw5