ThusanallegedrefugeefromBosnia(butIhavemydoubtsaboutherbeinggenuine)gavememymoneyback(roughlyadollar),andsomeofmystudentswitnessedamiraclewhena"disabled"beggarsuddenlyroseandcalleditadayandwalkedawaywiththedaysearnings.

Thus an alleged refugee from Bosnia (but I have my doubts about her being genuine) gave me my money back (roughly a dollar), and some of my students witnessed a miracle when a "disabled" beggar suddenly rose and called it a day and walked away with the days earnings.
[Q]: [complimentsofWeatherUnderground-4mb]
[A]: [compliments of Weather Underground - 4 mb]
Problem: Add spaces: Thetown'smostimportantlegacyisitsassociationwithHenrytheNavigator,wholivednearhereandwhoallegedlychoseSagresasalocationforhislegendaryschoolofnavigationandthedepartingpointforthefirstcaravelsontheirexploratoryjourneysofthe15thcentury.

Spaces added: The town's most important legacy is its association with Henry the Navigator, who lived near here and who allegedly chose Sagres as a location for his legendary school of navigation and the departing point for the first caravels on their exploratory journeys of the 15th century.
This text is missing some spaces, please add them: TheNorwegianeconomyisbasedoriginallyonforestsandfisheries.
The Norwegian economy is based originally on forests and fisheries.
input question: Fix spacing: Visitorsseethefinalresult-theirnewanduniqueStarWarscharacter-forthefirsttimeontheendoftheexhibition,andmayrequestareceiveamoredetailedversionofthecharacterprofileviaemail,whichcanthenbeconsultedfromhomeorsharedusingsocialmediaplatforms.

output answer: Visitors see the final result - their new and unique Star Wars character - for the first time on the end of the exhibition, and may request a receive a more detailed version of the character profile via email, which can then be consulted from home or shared using social media platforms.
input question: Fix spacing: AswewentdownstairsRiazanovburstinthroughthefrontdoor,veryagitated.

output answer:
As we went downstairs Riazanov burst in through the front door, very agitated.