adding bitname code
vairous updates and bug fixes