somre refactorying, consts, basic bluetooth handling code