MbedAdd and MbedRemove functions should allow the user to use them to add/remove many libraries in one call. see vim varags (http://learnvimscriptthehardway.stevelosh.com/chapters/24.html)