added functions to run bea with sources supplied by host instead of files, and modified the error reporting