Update documentation, fix input overflows