Added some background

and bug fixes.