Warnings resolved, further setup, bug fixing