added block-accepting tx macro, fixed return types bug, readme fixes, refactoring etc.