Documentation stuff

Also, build system improvements(forgot to make a new branch >_>)