initial commit - quickly hacked so mining works. needs cosmetics