Let's play with ATmega32u4

Hello everybody, It has been a long while since last time i started a new topic, i hope that you haven't missed me :sweat_smile:

Anyway, i bought a ATmega32u4 (i really like this chip) and i designed my own board, similar to the Arduino Pro Micro, but i haven't mounted it yet, so i can't make hardware test and i'm just studying what i should do... What i would like to know is how i should modify the boards.txt file and if, modifying it, i can program that chip using an arduino as ISP programmer and burning bootloader too.

This is the code used for the leonardo board:

leonardo.name=Arduino Leonardo
leonardo.upload.protocol=avr109
leonardo.upload.maximum_size=28672
leonardo.upload.speed=57600
leonardo.upload.disable_flushing=true
leonardo.bootloader.low_fuses=0xff
leonardo.bootloader.high_fuses=0xd8
leonardo.bootloader.extended_fuses=0xcb
leonardo.bootloader.path=caterina
leonardo.bootloader.file=Caterina-Leonardo.hex
leonardo.bootloader.unlock_bits=0x3F
leonardo.bootloader.lock_bits=0x2F
leonardo.build.mcu=atmega32u4
leonardo.build.f_cpu=16000000L
leonardo.build.vid=0x2341
leonardo.build.pid=0x8036
leonardo.build.core=arduino
leonardo.build.variant=leonardo

If i change some values of those used for leonardo, would it work?

Can i also modify lock bits directly on the boards.txt file? I saw on page 329 of the datasheet that there are 6 lock bits http://www.atmel.com/Images/Atmel-7766-8-bit-AVR-ATmega16U4-32U4_Datasheet.pdf Do "unlock_bits=0x3F" and "lock_bits=0x2F" act on that register? How do these two lines work?

I hope that these questions will be interesting for someone else too Thank you very much in advance! ;)