Fixed minor bugs. Added gallery js library