will look at splitting files at a later stage
also resolves a few issues regarding the Java environment