added isset check for else variable, added buildLive method, fixed method name convetions