Small changes. Spelling errors fixed, printStackTraces added, static references made static