improved cursor printing, added move instructions