Initial commit - importing code from debowerify