added pattern/cover option
added getCode feature to GUI