Fixed some error handling
Added commands to run when script called
Added error handling for oEmbed Codes