Reorganised the backend to remove superfluous files