Cleanup of code (whitespaces/defines etc). Added initial text for docs about XBus and its configurations.