fixes issue #16 by looking for parent and whether to process basic lit
minor: removes needless extra line at end