Original: Soon afterward the monastic order built its headquarters in Wigry, where a monastery and a church were built.
Simplified: Soon after the group of monks built its headquarters in Wigry, where a monastery and a church were built.