Fixed nulled array warning and leftover spaces.

Added support for console compiling.
Single file version.