Removed unnecessary code, added documentation

Also updated README