fixed sign problem + wrote core chapter in readme