added pretty printing
updated LOC