Restructured format of layout file

Encapsulated functionality related to layout into separate class
Made BP aware of channel layout