Closes #6. Fixed random netbeans false errors.