Documentation
Memory switch
memory allocation bugfix (uint -> size_t)