Reorganised files to allow morein depth access to TPInputLibrary