Removed a lot of redundant shit, added docs