Made some documentation and fixed a bug that allows instructions to be run even after returning a value.