refactored command to allow for multiple commands fodlers, made library and command functions public, switch path manipulation to functions
small fix for flow->init, bash script error