Feature/embed

Added the ability to work from an embedded stream.